<#escape x as x?html> <@h.commonHead title="后台管理系统" keywords="开源,永久免费"
description="springrain开源系统管理后台"/>
</head>
<body>
	<div class="layui-layout layui-layout-admin">
		<@h.naviHeader /> <@h.leftMenu />
		<!-- 主体内容开始 -->
		<div class="layui-body site-demo">
			<script type="text/javascript">
			<!--
				jQuery(document)
						.ready(
								function() {
									$(".sub_left_menu tbody tr")
											.click(
													function() {
														$(
																".sub_left_menu tbody tr.active")
																.removeClass(
																		"active");
														$(this).attr("class",
																"active");
														var _url = ctx
																+ "/system/auditlog/look/json?id="
																+ $(this).attr(
																		"id");

														jQuery
																.ajax({
																	url : _url,
																	type : "post",
																	dataType : "json",
																	success : function(
																			_json) {
																		if (_json.status == "success") {
																			showdata(_json);
																		}
																	}
																});
														return false;
													})
								});

				function showdata(result) {
					$("#updateForm select ").each(
							function() {
								$(this).find('option:first').attr('selected',
										'selected');
							});
					for ( var s in result.data) {
						set_val(s, result.data[s]);
					}
				}
			//-->
			</script>
			<form class="form-horizontal" method="post"
				action="${ctx}/system/auditlog/list" name="searchForm"
				id="searchForm">
				<input type="hidden" name="pageIndex" id="pageIndex"
					value="${(returnDatas.page.pageIndex)!'1'}" /> <input
					type="hidden" name="sort" id="page_sort"
					value="${(returnDatas.page.sort)!'desc'}" /> <input type="hidden"
					name="order" id="page_order"
					value="${(returnDatas.page.order)!'id'}" />
			</form>

			<!-- 功能操作区域结束 -->
			<!-- 列表显示区域  -->
			<div class="row">
				<div class="col-sm-4">
					<div class="widget-box">
						<div class="widget-header">
							<h4 class="widget-title">记录</h4>
						</div>
						<div class="widget-body">
							<div class="widget-main">
								<table class="table table-striped">
									<thead>
										<tr>
											<th>用户</th>
											<th>时间</th>
										</tr>
									</thead>
									<tbody>

										<#if (returnDatas.data??)&&(returnDatas.data?size>0)> <#list
										returnDatas.data as _data>
										<tr id="${(_data.id)!''}">
											<td>${(_data.operatorName)!''}</td>
											<td>${(_data.operationTime)!''}</td>
										</tr>
										</#list> </#if>
									</tbody>
								</table>
							</div>
						</div>
					</div>

				</div>
				<div class="col-sm-8">
					<div class="widget-box">
						<div class="widget-header">
							<h4 class="widget-title">详细信息</h4>
						</div>
						<div class="widget-body">
							<div class="widget-main">
								<form id="updateForm" name="updateForm" method="post"
									class="form-horizontal clearfix">
									<input type="hidden" name="id" id="id">
									<div class="form-group col-xs-9">
										<label class="col-sm-4 control-label" for="operatorName">用户：</label>
										<div class="col-sm-8">
											<input class="form-control" type="text" id="operatorName"
												name="operatorName">
										</div>
									</div>

									<div class="form-group col-xs-9">
										<label class="col-sm-4 control-label" for="operationTime">时间：</label>
										<div class="col-sm-8">
											<input class="form-control" type="text" id="operationTime"
												name="operationTime">
										</div>
									</div>
									<div class="form-group col-xs-9">
										<label class="col-sm-4 control-label" for="operationType">操作类型：</label>
										<div class="col-sm-8">
											<input class="form-control" type="text" id="operationType"
												name="operationType">
										</div>
									</div>

									<div class="form-group col-xs-9">
										<label class="col-sm-4 control-label" for="operationClass">操作记录：</label>
										<div class="col-sm-8">
											<input class="form-control" type="text" id="operationClass"
												name="operationClass">
										</div>
									</div>

									<div class="form-group col-xs-9">
										<label class="col-sm-4 control-label" for="operationClassId">记录Id：</label>
										<div class="col-sm-8">
											<input class="form-control" type="text" id="operationClassId"
												name="operationClassId">
										</div>
									</div>

									<div class="form-group col-xs-9">
										<label class="col-sm-4 control-label" for="preValue">旧值：</label>
										<div class="col-sm-8">
											<textarea class="form-control" name="preValue" id="preValue"
												rows="5" class="col-xs-12"></textarea>
										</div>
									</div>
									<div class="form-group col-xs-9">
										<label class="col-sm-4 control-label" for="curValue">新值：</label>
										<div class="col-sm-8">
											<textarea class="form-control" name="curValue" id="curValue"
												rows="5" class="col-xs-12"></textarea>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
				<div id="laypageDiv"></div>
				<@h.layPage cont="laypageDiv" formId="searchForm"
				page=returnDatas.page/>
			</div>


		</div>
		<!-- 主体内容结束 -->
		<@h.footer />
	</div>
</body>
</html>
</#escape>
